package cn.itcast.nems.order.service;


import cn.itcast.nems.order.dao.entity.OrderDiscount;
import cn.itcast.nems.order.dto.OrderModeDiscountDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 销售订单-优惠 服务类
 * </p>
 *
 * @author liyong
 * @since 2023-08-31
 */
public interface OrderDiscountService extends IService<OrderDiscount> {
    /**
     * 查看优惠
     * @param orderLineId
     * @return
     */
    List<Map<String, Object>> listOrderDiscount(String orderLineId);

    /**
     * 查看优惠优惠合计
     * @param orderLineId
     * @return
     */
    Integer getTotalAmount(String orderLineId);

    /**
     * 查询订单优惠信息
     *
     * @param orderId 订单ID
     * @return 优惠信息
     */
    List<OrderModeDiscountDTO> findDiscounts(String orderId);
}
